Skip to content

Conversation

@garrettwrong
Copy link
Collaborator

Enforce blk diag dtype on assign/insert.

Found its possible for other dtypes to sneak into block diagonals for very large (>=256) resolutions via upcasting. This should enforce those have dtype consistent with the block diagonal instance. For most cases the arrays should just pass through as they were.

@garrettwrong garrettwrong added bug Something isn't working cleanup labels Dec 8, 2023
@garrettwrong garrettwrong self-assigned this Dec 8, 2023
@garrettwrong garrettwrong requested a review from j-c-c December 8, 2023 14:46
@codecov
Copy link

codecov bot commented Dec 8, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (32f8d9c) 89.08% compared to head (81f4492) 89.08%.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #1063   +/-   ##
========================================
  Coverage    89.08%   89.08%           
========================================
  Files          126      126           
  Lines        11965    11965           
========================================
  Hits         10659    10659           
  Misses        1306     1306           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@j-c-c j-c-c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Nice find.

@garrettwrong garrettwrong marked this pull request as ready for review December 8, 2023 15:38
@garrettwrong garrettwrong requested a review from janden as a code owner December 8, 2023 15:38
@garrettwrong
Copy link
Collaborator Author

Merging so this is included in the release.

@garrettwrong garrettwrong merged commit d469b39 into develop Dec 8, 2023
@garrettwrong garrettwrong deleted the ensure_blk_dtype branch December 8, 2023 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cleanup

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants